/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author Lunde
 */
public interface ConnectionInterface extends Remote{
    
    public void setObserverListener(ObserverListenerInterface oli) throws RemoteException;
    public BrugerInterface getBruger() throws RemoteException;
    public SalgInterface getAktivSalg() throws RemoteException;
    public ArrayList<VareInterface> getAlleVarer() throws RemoteException, SQLException;
    public ArrayList<Lager_VareInterface> hentLagerVarerTilknyttetBruger() throws RemoteException, SQLException;
    public ArrayList<VareGruppeInterface> hentAlleVaregrupper() throws RemoteException, SQLException;    
    public void annullerSalg() throws RemoteException, SQLException;
    public void gennemførSalg() throws RemoteException, SQLException;
}
